package com.qingzhuge.member.entity;

import com.qingzhuge.entity.BaseModel;
import com.qingzhuge.member.enums.EnumPublishType;
import com.qingzhuge.member.enums.EnumRoleType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * @author : zero.xiao
 * @description :
 * @date :2019-07-04 17:34
 * @modified :
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "sys_image_text")
public class SysImageText extends BaseModel {
    private static final long serialVersionUID = -334581107050924029L;
    /**
     * 删除
     */
    public static final Integer DELETE_TRUE = 1;
    /**
     * 正常
     */
    public static final Integer DELETE_NORMEL = 0;

    /**
     * 状态显示
     */
    public static final Integer STATUS_SHOW = 1;
    /**
     * 不显示
     */
    public static final Integer STATUS_BLANK = 0;
    /**
     * 主标题
     */
    private String mainTitle;
    /**
     * 副标题
     */
    private String secondTitle;

    /**
     * 角色类型 ：用户 商家
     */
    private EnumRoleType roleCategory;
    /**
     * 发布类型:在哪个页面显示
     */
    private EnumPublishType showCategory;
    /**
     * 删除
     */
    private Integer deleted;
    /**
     * 关键字
     */
    private String keyword;

    /**
     * 浏览量
     */
    @Transient
    private Integer vp;
    /**
     * 作者
     */
    private String author;

    @Transient
    private List<EnumPublishType> types;
}